package com.slink.xin.common.mapper;


import java.util.List;

import com.slink.xin.common.domain.po.Course;
import com.slink.xin.common.domain.po.Student;


public interface StudentMapper {
		
	//根据id查找学生
	public Student getById(int id);
	
	//添加一名学生
	public int add(Student student);
	
	//修改学生
	public int update(Student student);
	
	//删除学生
	public int delete(Integer id);
	
	//根据教师id查询学生
	public Student getBySupervisorId(int id);
	
	public List<Student> selectAll();
	
	/**
	 * 多对多保存测试
	* @Title: saveSelecCourse 
	* @Description: TODO 
	* @param @param student
	* @param @param course    
	* @return void    
	* @throws
	 */
	public void saveSelecCourse(Student student, Course course);
}
